package com.loeng.framework.tenant.core.config;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 多租户自动配置
 * @ ConditionalOnProperty matchIfMissing = true 允许使用 loeng.tenant.enable=false 禁用多租户
 * @author 芋道源码
 */
@AutoConfiguration
@ConditionalOnProperty(prefix = "loeng.tenant", value = "enable", matchIfMissing = true)
@EnableConfigurationProperties(TenantProperties.class)
public class LoengTenantAutoConfiguration {
}
